<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\Sms;
/* @var $this yii\web\View */
/* @var $model common\models\Sms */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="sms-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'user_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'tel')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>

    <!-- <?= $form->field($model, 'create_time')->textInput() ?>
    
    <?= $form->field($model, 'update_time')->textInput() ?>
     -->
    <?= $form->field($model, 'admin_id')->textInput() ?>

    <?= $form->field($model, 'auto_send')->dropDownList(Sms::itemAlias('auto_send')) ?>

    <?= $form->field($model, 'send_status')->dropDownList(Sms::itemAlias('send_status')) ?>

    <?= $form->field($model, 'weight')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'tpl_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

   <?= $form->field($model, 'type')->dropDownList(Sms::itemAlias('type')) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
